import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "postcss-pxtorem";
import "./common/css/reset.css";
/* eslint-disable */
import VConsole from "vconsole";
var vConsole = new VConsole();
/* eslint-enable */

/*Vant 组件调用*/
import 'vant/lib/index.css';
import {
  NavBar,
  Tabbar,
  TabbarItem
} from 'vant';
Vue.use(NavBar)
    .use(Tabbar)
    .use(TabbarItem)
/*Vant 组件调用结束*/


Vue.config.productionTip = false;
router.beforeEach((to, from, next) => {
  if (to.name) {
    document.title = to.name;
    store.commit('setTitle',to.name)
  }
  next();
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
